import axios from 'axios'
export default {
  data() {
    return {
      baseURL: 'http://43.138.15.137:7000/api/private/v1',
      token: localStorage.getItem('token')
    }
  },
  methods: {
    request(url, method, data) {
      return axios({
        url: this.baseURL + url,
        method,
        data,
        headers: {
          'Authorization': this.token
        }
      })
    }

  }
}